package com.grao.waterschool.human.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.grao.waterschool.human.entiry.dto.UserInfoDTO;
import com.grao.waterschool.human.entiry.po.TSysTuser;
import com.grao.waterschool.human.entiry.vo.ResetPassword;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TSysTuserMapper extends BaseMapper<TSysTuser> {

    TSysTuser selectUserByName(String username);

    String selectUserById(Integer id);

    String selectTeacherNumById(String string);

    TSysTuser selectUserByTeacherNum(String teacherNum);

    List<UserInfoDTO> selectUserList();

    void updateNewasswordByTeacherNum(ResetPassword resetPassword);

    void disableUserByTeacherId(String teacherNum);

    void enableUserByTeacherId(String teacherNum);
}
